import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { DeletionModalComponent } from './deletion-modal/deletion-modal.component';
import { EquipmentDetailComponent } from './equipment-detail/equipment-detail.component';
import { EquipmentListComponent } from './equipment-list/equipment-list.component';
import { EquipmentCreateionComponent } from './equipment-createion/equipment-createion.component'

const routes: Routes = [{
    path:'nmodal',component:DeletionModalComponent,
},
    {
    path:'equipment-list',component:EquipmentListComponent,
    },
    {
    path:'equipment-detail/:id',component:EquipmentDetailComponent,
    },
    {    path:'equipment-createion',component:EquipmentCreateionComponent
},
];

@NgModule({
  imports: [RouterModule.forRoot(routes)],
  exports: [RouterModule]
})
export class AppRoutingModule { }
